package com.woniu.gf.pawn.comm.core.exception;

import com.woniu.gf.pawn.comm.core.dto.ResultDto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @BelongsProject: gf-pawn-comm
 * @BelongsPackage: com.woniu.gf.pawn.comm.core.exception
 * @Author: wu wei
 * @CreateTime: 2020-10-08 20:32
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ErrorResult  {
    private int code;
    private String msg;

    public static ErrorResult error(int code,String msg){
        return new ErrorResult(code,msg);
    }

    public static ErrorResult errorResult(int code , String msg){
        return new ErrorResult(code,msg);
    }
}
